// --------------------------------------------------------------------------------------------------------------------
// <copyright file="LocalResourceWrapper.cs" company="AzureContrib (Open source library http://azurecontrib.codeplex.com)">
//   Microsoft Public License (Ms-PL)
// </copyright>
// <summary>
//   Exception for errors when handling Windows Azure Cloud Drives.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

using System.IO;
using Microsoft.WindowsAzure.ServiceRuntime;

namespace AzureContrib.WindowsAzure.ServiceRuntime
{
	internal class LocalResourceWrapper : ILocalResource
	{
		private readonly LocalResource localResource;
		private readonly DirectoryInfo rootPath;

		public LocalResourceWrapper(LocalResource localResource)
		{
			this.localResource = localResource;
			rootPath = new DirectoryInfo(localResource.RootPath);
		}

		public int MaximumSizeInMegabytes
		{
			get { return localResource.MaximumSizeInMegabytes; }
		}

		public string Name
		{
			get { return localResource.Name; }
		}

		public DirectoryInfo RootPath
		{
			get { return rootPath; }
		}
	}
}